<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <title>首页</title>
</head>
<body>

    {% if username %}
        欢迎！{{ username }}
        <br>
        <a href="/logout/">注销</a>
    {% else %}
        <a href="/login/">请登录</a>
    {% endif %}


</body>
</html>